import 'package:flutter/material.dart';
import 'package:healthy_station_flutter/utils/screen_adapter.dart';

///
/// @Description 
/// @Author WuJianFeng
/// @Date 2024/3/1 13:39
/// 

class ImageUtils{

  static Image getImg(String imgName){
    return Image.asset("assets/images/$imgName");
  }

  static Image getImgWithSize(String imgName, double width, double height){
    return Image(image:AssetImage("assets/images/$imgName"), width: Adapt.pt(width), height: Adapt.pt(height));
  }

  static ImageProvider getImageProvider(String imgName){
    return AssetImage("assets/images/$imgName");
  }
}
 
 